﻿<Fluent:RibbonTabItem x:Class="AuftragRibbon"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" Header="{DynamicResource RibbonHeader}" IsEnabled="True" ReduceOrder="G2,G1">
    <Fluent:RibbonGroupBox Header="{DynamicResource Settings}" Name="G1">          
            <Fluent:RibbonToolBar>
                <Fluent:RibbonToolBar.LayoutDefinitions>
                    <Fluent:RibbonToolBarLayoutDefinition Size="Large">
                        <Fluent:RibbonToolBarRow>
                            <Fluent:RibbonToolBarControlDefinition Target="lbl2" Width="55" />
                            <Fluent:RibbonToolBarControlDefinition Target="spinner" Width="55"/>
                        </Fluent:RibbonToolBarRow>
                    </Fluent:RibbonToolBarLayoutDefinition>
                </Fluent:RibbonToolBar.LayoutDefinitions>
                <Label Name="lbl2">Nummer</Label>
                <Fluent:Spinner x:Name="spinner" Format="0" Maximum="Infinity" Minimum="1">
                    <Fluent:Spinner.ToolTip>
                    <Fluent:ScreenTip Title="{DynamicResource SerialOrderNoToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Text="{DynamicResource SerialOrderNoToolTipText}"/>
                    </Fluent:Spinner.ToolTip>
                </Fluent:Spinner>
            </Fluent:RibbonToolBar>
        <Fluent:ToggleButton Header="{DynamicResource Invoice}" Name="MIRechnung" Icon="../../Images/auftragr.png" LargeIcon="../../Images/auftragr.png">
                <Fluent:ToggleButton.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource Invoice}" Width="450" HelpLabelVisibility="Collapsed" Image="../../Images/auftragr.png" Text="{DynamicResource InvoiceToolTipText}"/>
                </Fluent:ToggleButton.ToolTip>
            </Fluent:ToggleButton>
        <Fluent:ToggleButton Header="{DynamicResource DeliveryOrder}" Name="MILieferschein" Icon="../../Images/auftragl.png" LargeIcon="Images/auftragl.png">
                <Fluent:ToggleButton.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource DeliveryOrder}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/auftragl.png" Text="{DynamicResource DeliveryOrderToolTipText}"/>
                </Fluent:ToggleButton.ToolTip>
            </Fluent:ToggleButton>
        <Fluent:ToggleButton Header="{DynamicResource Offer}" Name="MIAngebot" Icon="../../Images/auftraga.png" LargeIcon="../../Images/auftraga.png">
                <Fluent:ToggleButton.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource Offer}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/auftraga.png" Text="{DynamicResource OfferOrderToolTipText}"/>
                </Fluent:ToggleButton.ToolTip>
            </Fluent:ToggleButton>
        <Fluent:ToggleButton Header="{DynamicResource Credit}" Name="MIGutschrift" Icon="../../Images/auftragg.png" LargeIcon="../../Images/auftragg.png">
                <Fluent:ToggleButton.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource Credit}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/auftragg.png" Text="{DynamicResource CreditOrderToolTipText}"/>
                </Fluent:ToggleButton.ToolTip>
            </Fluent:ToggleButton>
        <Fluent:Button Header="{DynamicResource DateButton}" Name="ButtonDatum" Icon="../../Images/vcalendar.png" LargeIcon="../../Images/vcalendar.png" MinWidth="68">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource DateButton}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/vcalendar.png" Text="{DynamicResource DateButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        </Fluent:RibbonGroupBox>
    <Fluent:RibbonGroupBox Header="{DynamicResource Article}">
        <Fluent:Button Name="buttonAuftragArtikelhinzufügen" Header="{DynamicResource AddArtikelButton}" Icon="../../Images/artikeladd.png" LargeIcon="../../Images/artikeladd.png">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource AddArtikelButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/artikeladd.png" Text="{DynamicResource AddArtikelButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        <Fluent:Button Name="buttonAuftragArtikellöschen" Header="{DynamicResource DeleteArticleButton}" Icon="../../Images/artikelremove.png" LargeIcon="../../Images/artikelremove.png" IsEnabled="False">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource DeleteArticleButton}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/artikelremove.png" Text="{DynamicResource DeleteArticleButtonToolTipText}" DisableReason="{DynamicResource DeleteArticleButtonToolTipDisable}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        </Fluent:RibbonGroupBox>
    <Fluent:RibbonGroupBox Header="{DynamicResource Customer}" Name="G2">
        <Fluent:Button Name="buttonAuftragKundewählen" Header="{DynamicResource CustomerChooseButton}" Icon="../../Images/kundehinzufuegen.png" LargeIcon="../../Images\kundehinzufuegen.png">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource CustomerChooseButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/kundehinzufuegen.png" Text="{DynamicResource CustomerChooseButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        <!--<Fluent:ToggleButton Name="buttonAuftragKundeEigen" Header="{DynamicResource OwnCustomerRibbonButton}" Icon="../../Images\kundeedit.png" LargeIcon="../../Images\kundeedit.png">
            <Fluent:ToggleButton.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource OwnCustomerButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/kundeedit.png" Text="{DynamicResource OwnCustomerButtonToolTipText}"/>
            </Fluent:ToggleButton.ToolTip>
        </Fluent:ToggleButton>-->
    </Fluent:RibbonGroupBox>
    <Fluent:RibbonGroupBox Header="{DynamicResource Export}">
        <Fluent:Button Name="buttonAuftragPDF2" Header="{DynamicResource OrderAsPDFButton}" Icon="../../Images\pdf.png" LargeIcon="../../Images\pdf.png" IsEnabled="True">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource OrderAsPDFButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/pdf.png" Text="{DynamicResource OrderAsPDFButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        <Fluent:Button Name="buttonAuftragDrucken2" Header="{DynamicResource OrderPrintButton}" Icon="../../Images\print.png" LargeIcon="../../Images\print.png" IsEnabled="True">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource OrderPrintButtonToolTipHeader}" Width="450" HelpLabelVisibility="Collapsed" Image="../../Images/print.png" Text="{DynamicResource OrderPrintButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        </Fluent:RibbonGroupBox>
    <Fluent:RibbonGroupBox Header="{DynamicResource Save}">
        <Fluent:Button Name="buttonAuftragzwischenspeichern" Header="{DynamicResource QuickSaveButton}" Icon="../../Images\save.png" LargeIcon="../../Images\save.png">
                <Fluent:Button.ToolTip>
                    <Fluent:ScreenTip Title="{DynamicResource QuickSaveButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/save.png" Text="{DynamicResource QuickSaveButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        <Fluent:Button Name="buttonAuftragSpeichern" Header="{DynamicResource SaveButton}" Icon="../../Images\saveback.png" LargeIcon="../../Images\saveback.png" IsEnabled="False">
                <Fluent:Button.ToolTip>
                    <Fluent:ScreenTip Title="{DynamicResource SaveButtonToolTipHeader}" HelpLabelVisibility="Collapsed" Width="450" Image="../../Images/saveback.png" Text="{DynamicResource SaveButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        </Fluent:RibbonGroupBox>
    <Fluent:RibbonGroupBox Header="{DynamicResource Abort}">
        <Fluent:Button Name="buttonAuftragAbbrechen" Header="{DynamicResource Abort}" Icon="../../Images\cancel.png" LargeIcon="../../Images\cancel.png">
                <Fluent:Button.ToolTip>
                <Fluent:ScreenTip Title="{DynamicResource Abort}" Width="450" HelpLabelVisibility="Collapsed" Image="../../Images/cancel.png" Text="{DynamicResource AbortButtonToolTipText}"/>
                </Fluent:Button.ToolTip>
            </Fluent:Button>
        </Fluent:RibbonGroupBox>
    <Fluent:RibbonTabItem.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary x:Name="LocalizationStrings" Source="OrderControl_de-de.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Fluent:RibbonTabItem.Resources>
</Fluent:RibbonTabItem>
